<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8" />
<title></title>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
	<h1>Hello World</h1>
	<ul id="app">
		 <li v-for="item in items">
    		{{ item.name }}
    	</li>
	</ul>
	<script type="text/javascript">
	var demo=new Vue({
		el:'#app',
		data: {
			items:null
		  },
		created: function () {
		    this.fetchData()
		  },
		  methods: {
		    fetchData: function () {
		    	console.log(this);
		    	var self = this;
		    	console.log(self);
		    	axios.get('show3')
				.then(function (response) {
					console.log("this:"+this);
					console.log(self);
					self.items=response.data;
				})
				.catch(function (error) {
					console.log(error);
				});
		    }
		  }
	});
	</script>
</body>
</html>